home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / LANG / C / GCC / V2-4-5 / GCC2 / Examples / Makefile
Makefile  |  1994-10-04  |  1KB  |  64 lines

  1. # Project:   gcc-examples
  2.  
  3. # Toolflags:
  4. GCCflags = -v
  5. Linkflags = -aif -o $@
  6. LIBS = gpp:o.c++ gcc:o.gcc Unix:o.UnixLib
  7.  
  8. Dependencies = -mamu
  9.  
  10. CC = gcc $(GCCflags)
  11. Link = ld $(LinkFlags) $(Libs)
  12.  
  13. .SUFFIXES: .o .c .cc .s .i
  14. .c.o:;  $(CC) $(Dependencies) -c -o $@ $<
  15. .cc.o:; $(CC) $(Dependencies) -c -o $@ $<
  16. .cc.s:; $(CC) $(Dependencies) -S -o $@ $<
  17. .c.s:;  $(CC) $(Dependencies) -S -o $@ $<
  18. .cc.i:; $(CC) $(Dependencies) -E -o $@ $<
  19. .c.i:;  $(CC) $(Dependencies) -E -o $@ $<
  20.  
  21.  
  22. #############################################################################
  23.  
  24. # Final targets
  25. all:    HelloW Example1 HelloW++
  26. clean:
  27.     remove HelloW
  28.     remove Example1
  29.     remove HelloW++
  30.     -wipe o.* ~v~c
  31.  
  32. HelloW:    HelloW.o
  33.     $(Link) HelloW.o
  34.     
  35. Example1:    Example1a.o Example1b.o Example1c.o
  36.     $(Link) Example1a.o Example1b.o Example1c.o
  37.  
  38. HelloW++:    HelloW++.o
  39.     $(Link) HelloW++.o -LGPP: -lc++
  40.  
  41. # Dynamic dependencies:
  42. o.HelloW:    c.HelloW
  43. o.HelloW:    Unix:h.stdio
  44. o.HelloW:    Unix:h.stdarg
  45. o.HelloW:    Unix:sys.h.types
  46. o.Example1a:    c.Example1a
  47. o.Example1a:    Unix:h.stdio
  48. o.Example1a:    Unix:h.stdarg
  49. o.Example1a:    Unix:sys.h.types
  50. o.Example1a:    h.Example1b
  51. o.Example1b:    c.Example1b
  52. o.Example1b:    Unix:h.stdio
  53. o.Example1b:    Unix:h.stdarg
  54. o.Example1b:    Unix:sys.h.types
  55. o.Example1b:    h.Example1c
  56. o.Example1c:    c.Example1c
  57. o.Example1c:    Unix:h.stdio
  58. o.Example1c:    Unix:h.stdarg
  59. o.Example1c:    Unix:sys.h.types
  60. o.HelloW++:    cc.HelloW++
  61. o.HelloW++:    GPP:h.iostream
  62. o.HelloW++:    GPP:h.streambuf
  63. o.HelloW++:    GPP:h._G_config
  64.